import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Detail from '@/components/detail'
import Login from '@/components/login'
import My from '@/components/my'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/detail/:id',
      name: 'detail',
      component: Detail
    },
    
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    
    {
      path: '/my',
      name: 'my',
      component: My
    }
  ]
})
